<script setup lang="ts">
  import { onUpdated } from 'vue'
  const props = defineProps({
    item: Object,
    onChange: Function
  })
  onUpdated(() => {
    console.log('qwewqe',props.item)
  })
</script>
<template>
  <div @click="props.onChange">
    {{ props.item!.name }}
    {{ props.item!.name1 }}
  </div>
</template>